package com.udf.AopShow.service.impl;

import com.udf.AopShow.service.IHelloService;
import org.springframework.stereotype.Service;

/**
 * Created by zwr on 2014/11/1.
 */

@Service
public class HelloServiceImpl implements IHelloService {

    public HelloServiceImpl() {
        System.out.println("构造HSI");
    }

    @Override
    public void sayHello() {
        System.out.println("method--0");
        System.out.println("hello~");
//        sayHi();
    }

    @Override
    public void sayHello(String a) {
        System.out.println("method--1");
        System.out.println(a);
    }

    private void sayHi() {
        System.out.println("hi!");
    }


}
